//
//  ZLPLineCollectionViewCell.m
//  TangYi
//
//  Created by dllo on 15/10/27.
//  Copyright (c) 2015年 赵连鹏. All rights reserved.
//

#import "ZLPLineCollectionViewCell.h"
#import "ZLPIsSelectedHandle.h"

@implementation ZLPLineCollectionViewCell

- (void)dealloc {
    [_nameLabel release];
    [_lineLabel release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 65, 20)];
        [self.contentView addSubview:self.nameLabel];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        [_nameLabel release];
        
        self.lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 25, 45, 1)];
        [self.contentView addSubview:self.lineLabel];
        if ([ZLPIsSelectedHandle shareZLPIsSelectedHandle].isSelected) {
            self.lineLabel.backgroundColor = [UIColor redColor];
        }
        
        [_lineLabel release];
    }
    return self;
}


@end
